package com.twentytwok.hospitalsystem22K.mapper;

import com.twentytwok.hospitalsystem22K.bo.DepartmentBo;
import com.twentytwok.hospitalsystem22K.pojo.Department;
import com.twentytwok.hospitalsystem22K.pojo.DepartmentExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface DepartmentMapper {
    long countByExample(DepartmentExample example);

    int deleteByExample(DepartmentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    List<Department> selectByExample(DepartmentExample example);

    Department selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example);

    int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> selectByParams(Map<String, Object> params);

    @Select("select department_name as departmentName ,doctor_id as doctorId from department")
    List<DepartmentBo> selectDepartmentNameBar();
}